<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row">
            <form class="layui-form layui-form-pane" id="signupForm">
                <input id="id" name="id" th:value="${device.id}" type="hidden" />

                <div class="layui-form-item">
                    <label class="layui-form-label">设备名称</label>
                    <div class="layui-input-block">
                        <input id="deviceName" style="width: 72%;" name="deviceName" th:value="${device.deviceName}" class="layui-input" type="text">
                    </div>
                </div>

                <div class="layui-form-item" id="storeDiv" th:classappend="${device.isEllipse eq 0}  ? '' : 'layui-hide'">
                    <label class="layui-form-label">正圆直径</label>
                    <div class="layui-input-block">
                        <input id="storeDiameter" style="width: 72%;float: left;" name="storeDiameter" th:value="${device.storeDiameter}" class="layui-input" type="number" />
                        <label class="layui-form-label">米</label>
                    </div>
                </div>

                <div id="ellipseDiv" th:classappend="${device.isEllipse eq 1}  ? '' : 'layui-hide'">
                    <div class="layui-form-item" >
                        <label class="layui-form-label">椭圆长半轴</label>
                        <div class="layui-input-block" >
                            <input id="longHalfShaft" style="width: 72%;float: left;" name="longHalfShaft" th:value="${device.longHalfShaft}" class="layui-input" type="number" />
                            <label class="layui-form-label">米</label>
                        </div>
                    </div>
                    <div class="layui-form-item" >
                        <label class="layui-form-label">椭圆短半轴</label>
                        <div class="layui-input-block">
                            <input id="shortHalfShaft" style="width: 72%;float: left;" name="shortHalfShaft" th:value="${device.shortHalfShaft}" class="layui-input" type="number" />
                            <label class="layui-form-label">米</label>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">柱体高度</label>
                    <div class="layui-input-block">
                        <input id="cylinderHeight" style="width: 72%;float: left;" name="cylinderHeight" th:value="${device.cylinderHeight}" class="layui-input" type="number" />
                        <label class="layui-form-label">米</label>
                    </div>
                </div>

<!--                <div class="layui-form-item">-->
<!--                    <label class="layui-form-label">下方锥体高度</label>-->
<!--                    <div class="layui-input-block">-->
<!--                        <input id="coneHeight" style="width: 72%;float: left;" name="coneHeight" th:value="${device.coneHeight}" class="layui-input" type="number" />-->
<!--                        <label class="layui-form-label">米</label>-->
<!--                    </div>-->
<!--                </div>-->

                <div class="layui-form-item" >
                    <label class="layui-form-label">当前容重</label>
                    <div class="layui-input-block">
                        <input id="plotRatio" style="width: 72%;float: left;" name="plotRatio" th:value="${device.plotRatio}" class="layui-input" type="number" />
                        <label class="layui-form-label">Kg/立方米</label>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div style="text-align: center;margin-top: 20px">
                        <button  onclick="update()" class="layui-btn layui-btn-normal" >提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/device/range/shopDetail.js}"></script>
</body>
</html>
